
#ifndef NESTPATHITEM_H
#define NESTPATHITEM_H


#include <QWidget>
#include "entity/NestPath.h"
#include <QGraphicsPathItem>
#include <QCheckBox>
#include <QLabel>
class NestPathItem : public QWidget
{
    Q_OBJECT

public:
    explicit NestPathItem(NestPath& nestpath, QWidget *parent = nullptr);
    ~NestPathItem();
    QGraphicsPathItem* NestPathToQGraphicsPathItem(NestPath& nestpath);
    QCheckBox *checkbox;
    void showContextMenu();
    NestPath m_nestPath;
    QLabel *m_path_name;

signals:
    void deleteItem(int id);

protected:
    void mousePressEvent(QMouseEvent *event) override;

private:

    QColor parts_color = QColor("#4d84ad");


};
#endif // NESTPATHITEM_H
